package com.example.csmall.product.mapper;

import com.example.csmall.product.pojo.entity.Album;
import com.example.csmall.product.pojo.entity.SpuDetail;

import java.util.List;

public interface SpuDetailMapper {

    int insert(SpuDetail spuDetail);


    /**
     * 添加多条记录
     * @param spuDetailList
     * @return
     */
    int insertBatch(List<SpuDetail> spuDetailList);

    int deleteById(Integer id);

    /**
     * 批量根据id删除数据
     * @param ids
     * @return
     */
    int deleteByIds(Long[] ids);

    /**
     * 根据id修改数据
     * @param spuDetail
     * @return
     */
    int updateById(SpuDetail spuDetail);

}
